package net.begincode.common.email;

import javax.mail.MessagingException;

public interface EmailSender {
    /**
     * 发送文本邮件
     */
    boolean sendEmail(String emailTo, String subject, String text) throws MessagingException;

    /**
     * 发送html邮件
     */
    boolean sendEmail4Html(String emailTo, String subject, String text) throws MessagingException;
}
